﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="lovGenerica.ascx.cs"
    Inherits="SERIX.Controles.lovGenerica" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="Navegador.ascx" TagName="Navegador" TagPrefix="uc1" %>
<asp:Button ID="btnLov" runat="server" Text="..." OnClick="btnLov_Click" CausesValidation="False" />
<cc1:ModalPopupExtender ID="Panel1_ModalPopupExtender" runat="server" DynamicServicePath=""
    Enabled="True" TargetControlID="btnLov" PopupControlID="Panel1" DropShadow="True"
    BackgroundCssClass="modalBackground" Drag="True" PopupDragHandleControlID="Draglable">
</cc1:ModalPopupExtender>
<asp:Panel Style="display: none" ID="Panel1" runat="server" Height="285px" Width="499px"
    BackColor="#CCCCCC" BorderColor="Black" BorderStyle="Solid" BorderWidth="1px">
    <asp:UpdatePanel ID="UpdatePanelLov" runat="server">
        <ContentTemplate>
            <table align="center" border="0" cellpadding="2" cellspacing="0" width="100%">
                <tr id="Draglable" runat="server">
                    <td>
                        <table>
                            <tr>
                                <td style="width: 100%; text-align: left">
                                    &nbsp;<asp:Label ID="lbTitulo" runat="server" Text="Pesquisa de ..." Font-Bold="True"
                                        ForeColor="Black"></asp:Label>
                                </td>
                                <td>
                                    <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanelLov">
                                        <ProgressTemplate>
                                            <img alt="" src="../Imagens/indicator.white.gif" />
                                        </ProgressTemplate>
                                    </asp:UpdateProgress>
                                </td>
                                <td align="left" style="height: 16px; text-align: right;">
                                    <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/Imagens/botoes/remove.png"
                                        OnClick="ImageButton1_Click" CausesValidation="False" />
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td align="center" class="grid_titulo">
                        <asp:Panel ID="Panel2" runat="server" BorderWidth="0" BorderStyle="None" DefaultButton="btnPequisar">
                            <span style="color: #FFFFFF">Filtrar: </span>
                            <asp:TextBox ID="txtFiltrar" runat="server" MaxLength="55" TabIndex="2" Width="127px"></asp:TextBox>
                            &#160;&#160;<asp:Button ID="btnPequisar" runat="server" Font-Bold="True" OnClick="btnPequisar_Click"
                                TabIndex="5" Text="Pesquisar" Width="80px" CausesValidation="False" />
                            &#160;&#160;</asp:Panel>
                    </td>
                </tr>
                <tr>
                    <td class="grid_titulo">
                        <div align="center">
                            <asp:RadioButtonList ID="RadioButtonList1" runat="server" RepeatDirection="Horizontal">
                                <asp:ListItem Value="E" Selected="True">Pela esquerda</asp:ListItem>
                                <asp:ListItem Value="D">Pela direita</asp:ListItem>
                                <asp:ListItem Value="A">Qualquer posição</asp:ListItem>
                            </asp:RadioButtonList>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td align="center" style="color: #000000; height: 125px; vertical-align: text-top">
                        <asp:GridView ID="gridView" runat="server" AutoGenerateColumns="False" CssClass="grid"
                            EmptyDataText="Nenhum registro encontrado." Width="100%" OnRowDataBound="gridView_RowDataBound">
                            <AlternatingRowStyle CssClass="row_alter" />
                            <Columns>
                                <asp:TemplateField HeaderText="Nome" HeaderStyle-HorizontalAlign="Center">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="LinkButton1" runat="server" OnClick="LinkButton1_Click" CausesValidation="False"
                                            Font-Overline="False" ForeColor="Black" Width="100%">LinkButton</asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <EmptyDataRowStyle CssClass="emptyrow" />
                            <HeaderStyle CssClass="header" />
                            <RowStyle CssClass="row" />
                        </asp:GridView>
                    </td>
                </tr>
                <tr style="height: 50px; vertical-align: bottom">
                    <td align="center" style="color: #000000">
                        <uc1:Navegador ID="Navegador1" runat="server" />
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Panel>
